﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="NewDieta.aspx.cs" Inherits="AcademiaInteligenteWeb.NewDieta" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .auto-style1 {
            height: 33px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1>Nova Alimentação_Dieta
    </h1>
    <div id="formulario">
        <table>
               <tr>
                   <td>Funcionário</td>
                  <td>
                    <asp:DropDownList runat="server" ID="ddlFuncionario" CssClass="form-control tooltipfield required" Width="162px" />
                  </td>
            </tr>
            <tr>
                   <td>Cliente</td>
                  <td>
                    <asp:DropDownList runat="server" ID="ddlCliente" CssClass="form-control tooltipfield required" Width="162px" />
                  </td>
           </tr>           
              <tr>
                <td colspan="4" style="text-align:right;">
                    <asp:Button ID="btnSalvar" Text="Salvar" runat="server" OnClick="btnSalvar_Click" />
                </td>
            </tr>
        </table>
    </div>

    <div id="dados">
        <asp:GridView ID="grdDietas" runat="server" AutoGenerateColumns="false" AllowPaging="true">
            <AlternatingRowStyle CssClass="alterningRow" />
            <SelectedRowStyle CssClass="selectedRow" />
            <Columns>
                 <asp:TemplateField HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"  HeaderStyle-Width="30px">
                    <ItemTemplate>
                        <input type="checkbox" name="chkSelect" class="checkboxGrid" value='<%#Eval("id")%>' />
                    </ItemTemplate>
                </asp:TemplateField> 
                <asp:BoundField DataField="id" HeaderText="Id"/>                
                <asp:BoundField DataField="Academia.Fantasia" HeaderText="Academia"/>              
                <asp:BoundField DataField="Funcionario.Nome" HeaderText="Funcionario"/>
                <asp:BoundField DataField="Cliente.Nome" HeaderText="Cliente"/> 
                <asp:BoundField DataField="id_alimentacao" HeaderText="Cód. Alimentação"/>             
                
            </Columns>
        </asp:GridView>
    </div>

    <div id="acoes">
        
             <ul>
                 <li class="itemSelected">
                <asp:LinkButton Text="Alterar" ID="lnkAlterar" runat="server" OnClick="lnkAlterar_Click" />
                </li>
              <li class="itemSelected">
                <asp:LinkButton Text="Excluir" ID="lnkExcluir" runat="server" OnClick="lnkExcluir_Click" />
                <asp:HiddenField ID="hfCurrentItem" ClientIDMode="Static" runat="server" />
            </li>
               <li class="itemSelected">
                <asp:LinkButton Text="Selecionar Alimentação" ID="lnkSelecionarAlimentacao" runat="server" OnClick="lnkSelecionarAlimentacao_Click"/>
            </li> 
            </ul>
    </div>
</asp:Content>
